package com.ibm.law.service.global;

import java.util.List;

import com.ibm.law.domain.Resource;
import com.ibm.law.service.DataAccessService;

public class ResourceService extends DataAccessService {
	public List<Resource> findRootResource() {
		String jpql = "select o from Resource o where o.parent is null";
		return entityManager.createQuery(jpql, Resource.class).getResultList();
	}
}
